package com.pda.xinma.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinma.R;
import com.pda.xinma.bean.HandingOutListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class HandingOutListAdapter extends BaseAdapter<HandingOutListBean> {
    public HandingOutListAdapter(int layoutResId, @Nullable List<HandingOutListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HandingOutListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_no,item.getDeliveryNo());
        helper.setText(R.id.tv_time,item.getCreateTime());
        helper.setText(R.id.tv_entryType,"类型："+item.getDeliveryTypeStr());
        helper.setText(R.id.tv_data1,"仓库："+item.getData1());
        helper.setText(R.id.tv_status,item.getDeliveryStatusStr());
        //helper.setText(R.id.tv_createTime,"创建时间： "+item.getCreateTime());
    }
}
